﻿using Domain.Entitys.Sinv;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.IRepositorys.Sinv
{
    public interface ISinv_CustomerRepository
    {
        /// <summary>
        /// 条件分页查询客户信息
        /// </summary>
        /// <param name="name"></param>
        /// <param name="phone"></param>
        /// <param name="currentPage"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        Task<List<Sinv_Customer>> GetSinv_CustomerAsync(string name,string phone,int currentPage,int pageSize);

        /// <summary>
        /// 条件查询客户总数
        /// </summary>
        /// <param name="name"></param>
        /// <param name="phone"></param>
        /// <returns></returns>
        Task<int> GetSinv_CustomerCountAsync(string name, string phone);

        /// <summary>
        /// 逻辑删除客户信息
        /// </summary>
        /// <param name="sinv_Customer"></param>
        /// <returns></returns>
        Task<int> Sinv_CustomerDelAsync(Sinv_Customer sinv_Customer);

        /// <summary>
        /// 添加客户信息
        /// </summary>
        /// <param name="sinv_Customer"></param>
        /// <returns></returns>
        Task<int> Sinv_CustomerAddAsync(Sinv_Customer sinv_Customer);

        /// <summary>
        /// 根据客户编号查询对应客户信息
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        Task<Sinv_Customer> Sinv_CustomerByCodeAsync(string code);

        /// <summary>
        /// 修改客户信息
        /// </summary>
        /// <param name="sinv_Customer"></param>
        /// <returns></returns>
        Task<int> Sinv_CustomerUpdateAsync(Sinv_Customer sinv_Customer);

        /// <summary>
        /// 根据客户名称查询客户信息
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        Task<List<Sinv_Customer>> Sinv_CustomerByNameAsync(string name);

    }
}
